package com.ty.mapper;

import com.ty.bean.CustomerInquiryDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerInquiryDetailMapper {
    /**
     * 批量保存
     *
     * @param id                     询价单id
     * @param customerInquiryDetails 询价明细
     * @return
     */
    int batchSave(@Param("id") int id, @Param("customerInquiryDetails") List<CustomerInquiryDetail> customerInquiryDetails);

    /**
     * 根据明细id查询产品相关信息
     *
     * @param id
     * @return
     */
    Map getDetail(int id);
}